#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main()
{

    int num = 0;

    while (~scanf("%d", &num))
    {

        int head_num = num * num - num + 1;
        for (int i = 0; i < num - 1; i++)
        {
            printf("%d%c", head_num, '+');
            head_num += 2;
        }
        printf("%d", head_num);
        putchar('\n');

    }
    return 0;
}



#include <stdio.h>

int main()
{

    int n = 0;
    int sum = 0;
    while (~scanf("%d", &n))
    {
        sum = n * 2 + n * (n - 1) * 3 / 2;
        printf("%d\n", sum);
    }

    return 0;
}